#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<string.h>

int main() {
    char arr[40] = {0};
    gets(arr);
    int right = strlen(arr)-1;
    int left = 0;
    while (left < right)
    {
        char tmp = arr[left];
        arr[left] = arr[right];
        arr[right] = tmp;
        left++;
        right--;
    }
    printf(arr);

    return 0;
}